import pytest

from business.account import account_login
from public.public_varliable import headers

@pytest.fixture(scope="package")
def get_token():
    login_resbody= account_login().json()#获取响应体
    token=login_resbody['data']['token']#提取token
    headers['token']=token#新增token到头信息